package com.education.model;

import java.io.Serializable;
import java.util.Date;

import com.education.util.DateUtil;

/**
 * 选择题表
 *
 * @author 赵睿慷
 */
public class QuestionModel implements Serializable {
    /**
     *
     */

    private static final long serialVersionUID = 1L;
    /**
     * 题目编号
     */

    private int questionId;
    /**
     * 题目名称
     */

    private String questionName;
    /**
     * 选项A
     */

    private String selectA;
    /**
     * 选项B
     */

    private String selectB;
    /**
     * 选项C
     */

    private String selectC;
    /**
     * 选项D
     */

    private String selectD;
    /**
     * 答案
     */

    private String selectAnswer;
    /**
     * 分值
     */

    private int selectPoint;
    /**
     * 录入时间
     */
    private Date selectAddtime;

    /**
     * String类型录入时间
     */
    private String selectAddtimeStr;
    /**
     * 修改时间(如果加上select就会命名过长)
     */
    private Date modifyDate;
    /**
     * String类型修改时间(如果加上select就会命名过长)
     */
    private String modifyDateStr;
    /**
     * 修改人(如果加上select就会命名过长)
     */
    private String modifyPerson;
    /**
     * 修改状态
     */
    private int selectDelete;
    /**
     * 题类型
     * 1为选择题
     * 2为判断题
     */
    private int questionType;
    /**
     * 题的难度
     * 1~5数字越大难度越大
     */

    private int questionDifficulty;

    private int teacherId;

    public int getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(int teacherId) {
        this.teacherId = teacherId;
    }

    public int getQuestionId() {
        return questionId;
    }

    public void setQuestionId(int questionId) {
        this.questionId = questionId;
    }

    public String getQuestionName() {
        return questionName;
    }

    public void setQuestionName(String questionName) {
        this.questionName = questionName;
    }

    public int getQuestionType() {
        return questionType;
    }

    public void setQuestionType(int questionType) {
        this.questionType = questionType;
    }

    public int getQuestionDifficulty() {
        return questionDifficulty;
    }

    public void setQuestionDifficulty(int questionDifficulty) {
        this.questionDifficulty = questionDifficulty;
    }


    public String getSelectA() {
        return selectA;
    }

    public void setSelectA(String selectA) {
        this.selectA = selectA;
    }

    public String getSelectB() {
        return selectB;
    }

    public void setSelectB(String selectB) {
        this.selectB = selectB;
    }

    public String getSelectC() {
        return selectC;
    }

    public void setSelectC(String selectC) {
        this.selectC = selectC;
    }

    public String getSelectD() {
        return selectD;
    }

    public void setSelectD(String selectD) {
        this.selectD = selectD;
    }

    public String getSelectAnswer() {
        return selectAnswer;
    }

    public void setSelectAnswer(String selectAnswer) {
        this.selectAnswer = selectAnswer;
    }

    public int getSelectPoint() {
        return selectPoint;
    }

    public void setSelectPoint(int selectPoint) {
        this.selectPoint = selectPoint;
    }

    public Date getSelectAddtime() {
        return selectAddtime;
    }

    /**
     * 数据库传输用Date
     * 前台取date用string
     *
     * @param selectAddtime 数据库取添加日期数据
     */
    public void setSelectAddtime(Date selectAddtime) {
        this.selectAddtime = selectAddtime;
        this.selectAddtimeStr = DateUtil.formatDate(selectAddtime, "yyyy-MM-dd HH:mm:ss");
    }

    public String getSelectAddtimeStr() {
        return selectAddtimeStr;
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    /**
     * 数据库传输用Date
     * 前台取date用string
     *
     * @param modifyDate 数据库取修改日期数据
     */
    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
        this.modifyDateStr = DateUtil.formatDate(modifyDate, "yyyy-MM-dd HH:mm:ss");
    }

    public String getModifyDateStr() {
        return modifyDateStr;
    }

    public String getModifyPerson() {
        return modifyPerson;
    }

    public void setModifyPerson(String modifyPerson) {
        this.modifyPerson = modifyPerson;
    }

    public int getSelectDelete() {
        return selectDelete;
    }

    public void setSelectDelete(int selectDelete) {
        this.selectDelete = selectDelete;
    }


    public String toString() {
        return "QuestionModel{" +
                "questionId=" + questionId +
                ", questionName='" + questionName + '\'' +
                ", selectA='" + selectA + '\'' +
                ", selectB='" + selectB + '\'' +
                ", selectC='" + selectC + '\'' +
                ", selectD='" + selectD + '\'' +
                ", selectAnswer='" + selectAnswer + '\'' +
                ", selectPoint=" + selectPoint +
                ", selectAddtime=" + selectAddtime +
                ", selectAddtimeStr='" + selectAddtimeStr + '\'' +
                ", modifyDate=" + modifyDate +
                ", modifyDateStr='" + modifyDateStr + '\'' +
                ", modifyPerson='" + modifyPerson + '\'' +
                ", selectDelete=" + selectDelete +
                ", questionType=" + questionType +
                ", questionDifficulty=" + questionDifficulty +
                '}';
    }
}
